package com.qijian.mold.repository.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qijian.mold.domain.dto.GetMoldDto;
import com.qijian.mold.domain.dto.SelectMoldDto;
import com.qijian.mold.domain.entity.Mold;
import com.qijian.mold.domain.entity.MoldChangeTask;
import com.qijian.mold.domain.vo.mold.MoldListVo;
import com.qijian.mold.mapper.MoldChangeTaskMapper;
import com.qijian.mold.mapper.MoldMapper;
import com.qijian.mold.repository.MoldChangeTaskRepository;
import com.qijian.mold.repository.MoldRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 模具仓库
 *
 * @author anni.zhu
 * @author anni.zhu@king-v.com
 * Created in 2025/3/29 17:25
 */
@Service
public class MoldRepositoryImpl extends ServiceImpl<MoldMapper, Mold> implements MoldRepository {

    @Autowired
    private MoldMapper mapper;

    @Override
    public List<Mold> selectMoldListByEqpId(Long eqpId) {
        return mapper.selectMoldListByEqpId(eqpId);
    }

    @Override
    public Page<Mold> selectMoldListByDto(GetMoldDto dto) {
        return mapper.selectMoldListByDto(dto);
    }

    @Override
    public Page<MoldListVo> selectByPage(SelectMoldDto dto) {
        return mapper.selectByPage(dto);
    }
}
